package com.manager.core.ad.mb

import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.manager.core.ad.mb.IViewOnCloseListener
import com.manager.core.ad.mb.mb_next
import com.manager.core.ad.mb.mb_toin_splash

abstract class MBCompontActivity : AppCompatActivity(){
     private  val TAG = "MBCompontActivity"

     var iViewOnCloseListener: IViewOnCloseListener? = null

    abstract fun onComplete()

     /**
      * 1. 是否进体内
      * 2. 是否加载下一个
      */
    fun toNext(type: String) {
        when(type) {
            mb_next -> {
                onComplete()
            }
            mb_toin_splash -> {

            }
            else -> {
                Log.d(TAG, "toNext: type params is not vail ${type}")
            }
        }
    }

}